#ifndef __LCD_H  
#define __LCD_H
#include "msclibs.h"
#define uchar unsigned char
#define uint unsigned int

#define  TYPE_LCD_DATA      1
#define  TYPE_LCD_COMMAND   0
#define  LCD_SIZE_X     240
#define  LCD_SIZE_Y     400
#define  DATA   P0

#define   LCD_RST P3_3    //RST 引脚定义
#define   LCD_RD  P2_6   //RD  引脚定义
#define   LCD_WR  P2_5   //WR  引脚定义
#define   LCD_RS  P3_2   //RS  引脚定义
#define   LCD_CS  P2_7   //CS  引脚定义

extern  uint colors[];
extern  void  delay_ms(uint ms);
extern  void  LCD_Write(uchar type, uint value);
extern  void  LCD_SendData8(uchar value);
extern  void  LCD_Wirte_Data16(uint value);
extern  void  Reg_Write(uint reg,uint value);
extern  void  Address_set(uint xStart, uint xEnd, uint yStart, uint yEnd);
extern  void  LCD_init(void);
extern  void  pic_play(uint xStart, uint xEnd, uint yStart, uint yEnd, const uchar *P);
extern  void  LCD_clear(uchar n);
extern  void LCD_color();
extern  void LCD_color_H();
extern  void LCD_color_V();
extern  void  LCD_ShowChar(uint x,uint y,uint For_color,uint Bk_color,char ch);
extern  void  LCD_ShowString(uint x,uint y,uint For_color,uint Bk_color,char *p);
extern  void LCD_ShowInt( uint x,uint y,uint For_color,uint Bk_color,int value);
#endif